package com.googlecode.jtoy.patterns.mediator;

public class Anchor {

	private boolean free;
	private Mediator med;

	public Anchor(Mediator md) {

		med = md;
	}

	public boolean isFree() {

		return free;
	}

	public void setFree(boolean free) {

		this.free = free;
	}

	public void speak() {

		med.anchorSpeak();
	}

	public void stop() {

		med.anchorStop();
	}
}
